public class RT {
    
    static 
    {
        for(RecordType r : [select Id,Name from RecordType Where 
                (Name='Multi-Account Support Program') Or 
                (Name='Named Caller Support Program') Order By Name Asc]) 
        {
            if (RT.MASPId==null) RT.MASPId = r.Id;
            else RT.NCSPId = r.Id;
        }
    }
    
    public static Id MASPId, NCSPId;
    
    static testMethod void testMASPRT() {
        RecordType[] rtArr = [select Id,Name from RecordType Where Name='Multi-Account Support Program'];
        system.assertEquals(1,rtArr.size(),'There should be only one SP Record Type named Multi-Account Support Program');
        for(RecordType r : rtArr)
        {
            system.assertEquals(r.Id,RT.MASPId,'RT.MASPId must be set correctly.');
        }
    }
    
    static testMethod void testNCSPRT() {
        RecordType[] rtArr = [select Id,Name from RecordType Where Name='Named Caller Support Program'];
        system.assertEquals(1,rtArr.size(),'There should be only one SP Record Type named Named Caller Support Program');
        for(RecordType r : rtArr) 
        {
            system.assertEquals(r.Id,RT.NCSPId,'RT.NCSPId must be set correctly.');
        }       
    }
     
    
}